<?php
class main_model extends CI_Model {

	function __construct(){
		parent::__construct();
	}
	function getData(){
		$this->load->database();
		$query = $this->db->query('select * from carpool.users');
		return $query->result();
	}
}
?>